package cn.water.demo.luban.commons.exception;

import cn.water.demo.luban.commons.restful.ResponseCode;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务异常
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessDemoException extends RuntimeException{
    private ResponseCode responseCode;
    BusinessDemoException(ResponseCode responseCode,String message){
        super(message);
        setResponseCode(responseCode);
    }
}
